<%--
    Document   : profile1
    Created on : Jun 5, 2014, 3:58:50 AM
    Author     : Satyapal
--%>





<%

                  String firstName=(String)session.getAttribute("firstName");
                  String lastName=(String)session.getAttribute("lastName");
                  String id=(String)session.getAttribute("id");
                  String middelName=(String)session.getAttribute("middelName");
                  String address=(String)session.getAttribute("address");
                  String mobileNumber=(String)session.getAttribute("mobileNumber");
                  String emailId=(String)session.getAttribute("mobileNumber");
                  String gender=(String)session.getAttribute("gender");
                  String dob=(String)session.getAttribute("dob");
                  String password=(String)session.getAttribute("password");
                  String city=(String)session.getAttribute("city");
                  String CountryState=(String)session.getAttribute("CountryState");
                  String pinCode=(String)session.getAttribute("pinCode");
                  String contry=(String)session.getAttribute("contry");
                  String profPic=(String)session.getAttribute("profPic");
                  String activationCode=(String)session.getAttribute("activationCode");
                  String profileState=(String)session.getAttribute("profileState");
                  String profileStatus=(String)session.getAttribute("profileStatus");
                  String profileCompletion=(String)session.getAttribute("profileCompletion");


                  java.io.BufferedReader br = null;

                                        try {

                                        String sCurrentLine;

                                        br = new java.io.BufferedReader(new java.io.FileReader(""+profPic+""));
                                        profPic="";

                                        while ((sCurrentLine = br.readLine()) != null) {
                                                profPic=profPic+sCurrentLine;
                                        }

                                        } catch (Exception e) {
                                                e.printStackTrace();
                                        }
                  




       String data="";
       int flag=0;

       if(firstName==null){

                    data="<li><a href=\"login.jsp\">Login</a></li> <li><a href=\"register.jsp\">Sign Up</a></li></ul></nav></div></div>";
                    out.print("<title>Error</title>");
                    session.setAttribute("message","profile");
                    String  url[]=request.getRequestURI().split("/");
                    String pageRedir=url[2];
                    session.setAttribute("pageRedir",pageRedir);
                    response.sendRedirect("login.jsp");
                    }
       else{
                    data="<li><a href=\"Logout.jsp\">Logout</a></li></ul></nav></div></div>";
                    out.print("<title>"+firstName.substring(0,1).toUpperCase()+firstName.substring(1)+" "+lastName.substring(0,1).toUpperCase()+lastName.substring(1)+"</title>");
                    flag=1;
           }


%>

<jsp:include page="header.jsp"/>

<%
    out.print(data);
%>



<style>
    button.blue, a.blue, input[type=submit].blue {
    padding: 10px 30px;
    -webkit-border-radius: 2px 2px;
    border: solid 1px #3079ed;
    background: #4d90fe; /* Old browsers */
    background: -moz-linear-gradient(top,  #4d90fe 0%, #4787ed 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#4d90fe), color-stop(100%,#4787ed)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top,  #4d90fe 0%,#4787ed 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top,  #4d90fe 0%,#4787ed 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top,  #4d90fe 0%,#4787ed 100%); /* IE10+ */
    background: linear-gradient(top,  #4d90fe 0%,#4787ed 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#4d90fe', endColorstr='#4787ed',GradientType=0 ); /* IE6-9 */
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    font-weight:bold;
    font-family:Arial, Helvetica, sans-serif;
    text-transform:uppercase;
    font-size:11px;
    line-height: 1;
}
button.blue:hover, a.blue:hover, input[type=submit].blue:hover {
    border: 1px solid #2f5bb7;
    background: #4d90fe; /* Old browsers */
    background: -moz-linear-gradient(top,  #4d90fe 0%, #357ae8 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#4d90fe), color-stop(100%,#357ae8)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top,  #4d90fe 0%,#357ae8 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top,  #4d90fe 0%,#357ae8 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top,  #4d90fe 0%,#357ae8 100%); /* IE10+ */
    background: linear-gradient(top,  #4d90fe 0%,#357ae8 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#4d90fe', endColorstr='#357ae8',GradientType=0 ); /* IE6-9 */
    -webkit-box-shadow: 0 1px 1px #333333;
    -moz-box-shadow: 0 1px 1px #333333;
    box-shadow: 0 1px 1px #333333;
}
button.blue:active, a.blue:active, input[type=submit].blue:active {
    border: 1px solid #377cea;
    -webkit-box-shadow: inset 0 0 2px 2px #377cea, 0 1px 0 0 #aaa;
    -moz-box-shadow: inset 0 0 2px 2px #377cea, 0 1px 0 0 #aaa;
    box-shadow: inset 0 0 2px 2px #377cea, 0 1px 0 0 #aaa;
}
a{
    text-decoration: none;
    font-family: sans-serif;
    font-weight: 5px;


}
</style>

 <style type="text/css">
	.alert-box {
		color:#555;
		border-radius:10px;
		font-family:Tahoma,Geneva,Arial,sans-serif;font-size:11px;
		padding:10px 36px;
		margin:10px;
	}
	.alert-box span {
		font-weight:bold;
		text-transform:uppercase;
	}
	.error {
		background:#ffecec url('../../images/error.png') no-repeat 10px 50%;
		border:1px solid #f5aca6;
	}
	.success {
		background:#e9ffd9 url('../../images/success.png') no-repeat 10px 50%;
		border:1px solid #a6ca8a;
	}
	.warning {
		background:#fff8c4 url('../../images/warning.png') no-repeat 10px 50%;
		border:1px solid #f2c779;
	}
	.notice {
		background:#e3f7fc url('../../images/notice.png') no-repeat 10px 50%;
		border:1px solid #8ed9f6;
	}
    </style>



<div style="position:relative;width: auto;z-index: 10000;">
    <div id="cssmenu" style="background-color: black;">
     <section class="innerpages">
         <div class="grid_12" style="background-image: url('commonfiles/images/satyapal.jpg'); width:100%;">
             <h1>Welcome <%
             if(flag==1){
              out.print(firstName.substring(0,1).toUpperCase()+firstName.substring(1)+" "+lastName.substring(0,1).toUpperCase()+lastName.substring(1)+"..");
              }
            %></h1>
         </div>
     </section>
</div>
</div>

<div class="block2">
  <div class="container_12">
    <!--==============================content================================-->
    <section class="content">
      <div class="wrapper projects">
        <div class="row clearfix">
          <article class="grid_18">
            <div class="post">
                <br><br>
                <img src="https://lh5.googleusercontent.com/-iSVw94VnNc4/T9kJ016IDtI/AAAAAAAAAFg/SgB8UGlyjtM/s630/Color%2BDroplets.JPG" alt="Post" style="width: 913;height: 347; border-style: double; border: blue; border-bottom-style: double;">





              <a href="#">  <img src="<%
                    out.print(profPic);

                %>" alt="Post" style=" margin:-153px 100 30 22; width:153;height:163; border: blue; border-bottom-style: double;"></a>





<div class="dock" style="margin:-125px -28 150 71;">
   <ul>
    <li><a href="ProfileCompletion.jsp"><img src="commonfiles/images/My-Profile.png" alt="Home"></a></li>
    <li><a href="MyPostedAd.jsp"><img src="commonfiles/images/My-Advertisement.png" alt="Apple"></a></li>
    <li><a href="MyInsurance.jsp"><img src="commonfiles/images/My-Insurance.png" alt="Safari"></a></li>
    <li><a href=""><img src="commonfiles/images/My-Tender.png" alt="harddrive"></a></li>
  </ul>
</div>

         

 




                <div style="background-color:inherit; margin:133px -307px 6px 0;" class="alert-box error">
                    <div class="alert-box warning">   <p><h4 style="font-family:Times new roman; color: maroon;"><a href="MyPostedAd.jsp">Dear,</a><br> <%
                 if(flag==1){   out.print(firstName.substring(0,1).toUpperCase()+firstName.substring(1)+" "+lastName.substring(0,1).toUpperCase()+lastName.substring(1));
                        }
                %></p></h4>
                </div>


                <div align="center" class="alert-box notice">

                    <p style="font-size: 15px;">
                    <span>notice: </span>

                    

                        <%
                                if(flag==1){
                                     if(profileCompletion.equals("0")){
                                         
                                           out.print(firstName.toUpperCase()+" "+lastName.toUpperCase()+" It's Seem Like Your Profile Is not Complet Yet<br>We Recommended You To Complet Your Profile<br>In Order To User Our Valuable Servicess<br><a href=\"ProfileCompletion.jsp\"><button class=\"blue\">"+firstName+" Click Hear To Complet Your Profile Now</button></a>");

                                           }
                                     }

                         %>

                    
                    </p>

                </div>

                 <br>

                 
                 <div class="alert-box warning">

                     <p style="font-size: 15px;">Today we are going to look at the design of CSS Notification Boxes. Notification or Alert Boxes are a great way to inform the user of a variety of messages, such as: error messages, success messages, warning messages and general notification. A great example for using these notification boxes would be for user registrations for a website, if for example the user made an error during registration, you could use an alert box to inform the user of the particular error. If however everything was correct, you could alert the user that registration has succeeded and that they can now login.</p>

                 </div>
                    

                         </div>
            


          </article>

        </div>
      </div>
    </section>
  </div>
</div>
</div>



<script type="text/javascript" src="commonfiles/js/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="commonfiles/js/superfish.js"></script>

<script type="text/javascript" src="commonfiles/js/jquery.isotope.min.js"></script>
<script type="text/javascript" src="commonfiles/js/contact.js"></script>
<script type="text/javascript" src="commonfiles/js/jquery.carouFredSel-6.1.0-packed.js"></script>
<script type="text/javascript" src="commonfiles/js/touchTouch.jquery.js"></script>
<script type="text/javascript" src="commonfiles/js/jquery-ui-1.8.24.custom.min.js"></script>

<jsp:include page="footer.jsp"/>
